﻿<UserControl x:Class="ZOIL.Library.Components.RotatingProgressBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Height="Auto" Width="Auto" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <Storyboard x:Key="RotateStoryboard">
            <DoubleAnimation From="0" To="359" RepeatBehavior="Forever" Storyboard.TargetName="ProgressRotate"
                             Storyboard.TargetProperty="Angle" />
        </Storyboard>
    </UserControl.Resources>
    <Grid>
        <Grid x:Name="ProgressCircle" RenderTransformOrigin="0.5, 0.5">
            <Grid.RenderTransform>
                <RotateTransform x:Name="ProgressRotate" Angle="0" />
            </Grid.RenderTransform>
            <Ellipse Width="50" Height="50" Fill="#FFCCCCCC" Stroke="YellowGreen" StrokeThickness="3" Opacity="0.4" />
            <Ellipse Width="50" Height="50" Stroke="YellowGreen" StrokeThickness="5" StrokeDashArray="5, 5" />
            <Ellipse Width="30" Height="30" Fill="Black" Stroke="YellowGreen" StrokeThickness="3" />
        </Grid>
        <TextBlock Margin="0, 70, 0, 0" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center">Please wait while loading HyperScatter</TextBlock>
    </Grid>
</UserControl>